<?php use_helper('Validation','recaptcha','Object') ?>

<h1>Search for Tutor</h1>

<?php echo form_tag('tutor/search') ?>
  <label>Subject</label>
  <?php echo form_error('subject') ?>  
  <?php echo select_tag('subject', options_for_select($subjects, 0)) ?><br /><br />

  <label>Rates ($)</label>
  <?php echo form_error('rates') ?>
  <?php echo input_tag('rates', '80') ?><br /><br />

  <label>Service Area</label>
  <?php echo form_error('servicearea') ?>
  <?php echo select_tag('servicearea', objects_for_select($serviceareas,'getId','getName',$sf_params->get('servicearea',0))) ?>
  <br /><br />

  <label>Availability</label>
  <?php echo select_tag('availability', objects_for_select($availabilities,'getId','getName',$sf_params->get('availability',0))) ?>

  <br /><br /> 

  <?php echo submit_tag('Search') ?>
</form>